import React from 'react';
import TextArea from "antd/es/input/TextArea";
import { Checkbox } from 'antd';
import type { CheckboxValueType } from 'antd/es/checkbox/Group';
const SonFreeze = () => {

    const options = [
        { label: '下单', value: 'placeAnOrder' },
        { label: '领卷', value: 'neck' },
        { label: '发布/评论买家秀', value: 'issue' },
    ];
    const plainOptions = ['下单', '领卷', '发布/评论买家秀'];

    const onChange = (checkedValues: CheckboxValueType[]) => {
        console.log('checked = ', checkedValues);
    };

    return (
        <div>
            <div>
                <p>限制行为</p>
                <Checkbox.Group options={plainOptions} defaultValue={['Apple']} onChange={onChange} />
            </div>
            <div>
                <p>冻结行为</p>
                <TextArea rows={4} placeholder="可以备注拉黑原因，比如退货率高"  />
            </div>
        </div>
    );
};

export default SonFreeze;